/*
 * @Author: your name
 * @Date: 2020-11-19 20:47:41
 * @LastEditTime: 2020-12-06 11:35:21
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \wechat-server\routes\weibo\realtimeList.js
 */
import Router from "koa-router";

import fs from "fs";

const router = Router();

router.get("/weibo/hotList", async (ctx, next) => {
  let data = fs.readFileSync("./hotItems.json", { encoding: "utf-8" });
  console.log(ctx.origin);
  ctx.body = data;
});

export default router;
